<template>
	<view style="width:94%;margin:0 auto;padding-top: 20rpx;">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				content: ''
			}
		},
		onLoad(options) {
			if (options.title) {
				this.title = options.title;
				
				uni.setNavigationBarTitle({
					title:this.title
				})
				
				this.getData();
			}
		},
		onShow() {

		},
		methods: {
			getData() {
				var that = this;
				that.$http.post('Agreement/GetAgreementByTitle', {
					agTitle: that.title
				}, function(res) {
					if (res.StatusCode == 1) {
						that.content = that.$uti.decode(res.Data.agContent)
					}
				})
			}
		}
	}
</script>

<style>
</style>
